package com.varian.auth.service;

import com.varian.auth.model.dto.OAuth2RegisteredClientDTO;
import com.varian.auth.model.dto.OAuth2RegisteredClientListDTO;
import com.varian.auth.model.entity.OAuth2RegisteredClient;
import com.varian.auth.model.vo.OAuth2RegisteredClientVO;
import com.varian.mybatis.base.IBaseService;
import org.springframework.security.oauth2.server.authorization.client.RegisteredClient;

import java.util.List;

/**
 * @author ben
 * @since 2024/6/27
 */
public interface IOAuth2RegisteredClientService extends IBaseService<OAuth2RegisteredClient> {

    RegisteredClient findById(Long id);

    RegisteredClient findByClientId(String clientId);

    boolean add(OAuth2RegisteredClientDTO dto);

    List<OAuth2RegisteredClientVO> list(OAuth2RegisteredClientListDTO dto);

    OAuth2RegisteredClientVO detailById(Long id);

    boolean modify(Long id, OAuth2RegisteredClientDTO dto);
}
